//package approval.dao;
//
//import java.sql.ResultSet;
//import java.sql.SQLException;
//import java.util.ArrayList;
//import java.util.Enumeration;
//import java.util.Hashtable;
//import java.util.List;
//import javax.faces.bean.ManagedBean;
//import javax.faces.bean.ManagedProperty;
//import javax.faces.bean.SessionScoped;
//import javax.faces.context.FacesContext;
//import javax.faces.event.ActionEvent;
//import javax.faces.event.AjaxBehaviorEvent;
//import javax.faces.model.SelectItem;
//import javax.servlet.http.HttpSession;
//import javax.swing.tree.TreeNode;
//import org.richfaces.component.UIExtendedDataTable;
//import org.richfaces.component.UISelect;
//import org.richfaces.component.UITree;
//import org.richfaces.event.TreeSelectionChangeEvent;
//
//import resource.pojo.Department;
//import resource.pojo.GroupApprove;
//import resource.pojo.ListApprove;
//import TemplateModel.DepartmentRoot;
//import models.pojo.Employee;
//import model.util.UtilInitLang;
//import models.util.MySqlDataAccessHelper;
//
//@ManagedBean(name = "modifyReceiverDAO")
//@SessionScoped
//public class ModifyReceiverDAO {
//
//	@ManagedProperty(value = "#{utilInitLang.getClassEntity()}")
//	private UtilInitLang utilInitLang;
//	private Hashtable<String, String> langs;
//
//	// UtilInitLang utilInitLang = new UtilInitLang();
//	private List<TreeNode> rootNodes = new ArrayList<TreeNode>();
//	private Department currentSelection = null;
//	private List<Employee> allEmployee = new ArrayList<Employee>();
//	private ArrayList<ListApprove> allReceiver = new ArrayList<ListApprove>();
//	private ArrayList<ListApprove> allListApproveOfGroup = new ArrayList<ListApprove>();
//	private Hashtable<String, GroupApprove> allGroupApprove = new Hashtable<String, GroupApprove>();
//	private ArrayList<SelectItem> allGroup = new ArrayList<SelectItem>();
//	private int currentIndex;
//	private int currenRowReceiverIndex;
//	private int currentIn;
//	private int currentIndexReceiver;
//	private String groupName = "";
//	private String groupCurrentName = "";
//	private String searchDepartment = "searchDepartment";
//	private String eventPopupSaveGroup;
//	private boolean isBinding = true;
//	private String butonleft = "butonright";
//	private String butonright = "butonright";
//	private int iDLast = 0;
//	private String messErr = "";
//	private String script = "";
//	private int indexDeleteReceiver;
//	MySqlDataAccessHelper mysqlHelper=new MySqlDataAccessHelper();
//
////	private static ConnectionPool connectionPool = null;
////	static {
////		try {
////			connectionPool = ConnectionPool.getConnectionPool();
////		} catch (Exception e) {
////			System.out.println("Error01:static block error!!");
////		}
////	}
//
//	public MySqlDataAccessHelper getMysqlHelper() {
//		return mysqlHelper;
//	}
//
//	public int getIndexDeleteReceiver() {
//		return indexDeleteReceiver;
//	}
//
//	public void setIndexDeleteReceiver(int indexDeleteReceiver) {
//		this.indexDeleteReceiver = indexDeleteReceiver;
//	}
//
//	public void setMysqlHelper(MySqlDataAccessHelper mysqlHelper) {
//		this.mysqlHelper = mysqlHelper;
//	}
//
//	public UtilInitLang getUtilInitLang() {
//		return utilInitLang;
//	}
//
//	public void setUtilInitLang(UtilInitLang utilInitLang) {
//		this.utilInitLang = utilInitLang;
//	}
//
//	public Hashtable<String, String> getLangs() {
//		langs = getUtilInitLang().getLangs();
//		return langs;
//	}
//
//	public void setLangs(Hashtable<String, String> langs) {
//		this.langs = langs;
//	}
//
////	public ResultSet ExecuteQuery(String sql) {
////		Connection conn = null;
////		ResultSet rs = null;
////		try {
////			conn = connectionPool.getConnection();
////			Statement stmt = conn.createStatement();
////			rs = stmt.executeQuery(sql);
////		} catch (Exception e) {
////			e.printStackTrace();
////		} finally {
////			connectionPool.releaseConnection(conn);
////		}
////		return rs;
////	}
////
////	public void ExecuteUpdate(String sql) {
////		Connection conn = null;
////		try {
////			conn = connectionPool.getConnection();
////			Statement stmt = conn.createStatement();
////			stmt.executeUpdate(sql);
////			stmt.close();
////		} catch (Exception e) {
////			e.printStackTrace();
////		} finally {
////			connectionPool.releaseConnection(conn);
////		}
////	}
//
//	public void initTree() {
//		mysqlHelper.open();
//		try {
//			ResultSet rs = null;
//
//			String sql = "select * from department,department_lang where department.IDDepartment=department_lang.IDDepartment and department_lang.LangID='"+getUtilInitLang().getLangID()+"'";
//
//			rs = mysqlHelper.executeQuery(sql);
//			DepartmentRoot d = getDepartmentRoot();
//			while (rs.next()) {
//				Department department = new Department(d);
//				department.setiDDepartment(rs.getInt("IDDepartment"));
//				department.setDepartmentName(rs.getString("DepartmentName"));
//				department.setLocation(rs.getString("Location"));
//				department.setDescription(rs.getString("Description"));
////				ConfigStaticLang configStaticLang = department
////						.getConfigStaticLang();
////				if (configStaticLang != null) {
////					department.setiDDepartment(rs.getInt("IDDepartment"));
////					department.setDepartmentName(configStaticLang
////							.getNameByLang());
////					department.setLocation(rs.getString("Location"));
////					department.setDescription(rs.getString("Description"));
////				} else {
////					department.setiDDepartment(rs.getInt("IDDepartment"));
////					department
////							.setDepartmentName(rs.getString("DepartmentName"));
////					department.setLocation(rs.getString("Location"));
////					department.setDescription(rs.getString("Description"));
////				}
//				d.getDepartments().add(department);
//			}
//			rootNodes.add(d);
//		} catch (Exception e) {
//			e.printStackTrace();
//		}finally{
//			mysqlHelper.close();
//		}
//	}
//
//	private DepartmentRoot getDepartmentRoot() {
//		DepartmentRoot t = new DepartmentRoot();
//		t.setName(getLangs().get("Department"));
//		return t;
//	}
//
//	public void selectionChanged(TreeSelectionChangeEvent selectionChangeEvent) {
//
//		List<Object> treeselection = new ArrayList<Object>(
//				selectionChangeEvent.getNewSelection());
//		Object currentSelectionKey = treeselection.get(0);
//		UITree tree = (UITree) selectionChangeEvent.getSource();
//		Object storedKey = tree.getRowKey();
//		tree.setRowKey(currentSelectionKey);
//		Object obj = tree.getRowData();
//		if (obj instanceof Department)
//			currentSelection = (Department) tree.getRowData();
//		if (currentSelection != null) {
//			allEmployee.clear();
//			allEmployee.addAll(currentSelection.getAllEmployee());
//		}
//		tree.setRowKey(storedKey);
//	}
//
//	public void dbClickAddReciver() {
//		if (allEmployee.size() > 0) {
//			addReceiver(allEmployee.get(this.getCurrentIndex()));
//		}
//	}
//
//	public void btClickAddReciver(ActionEvent e) {
//
//		if (allEmployee.size() > 0)
//			addReceiver(allEmployee.get(getCurrentIn()));
//	}
//
//	public void btClickRemoveReceiver(ActionEvent e) {
//		try {
//			if (allReceiver.size() > 0) {
//				int iremove = this.getCurrentIndexReceiver();
//				if (iremove == -1)
//					return;
//				if (iremove < allReceiver.size()) {
//					int lengh = allReceiver.size();
//					if (iremove < lengh - 1) {
//						for (int i = iremove + 1; i < lengh; i++) {
//							allReceiver.get(i).setOrder(i);
//						}
//					}
//					ListApprove l = allReceiver.remove(iremove);
//					if (l != null)
//						setCurrentIndexReceiver(iremove - 1);
//				}
//			}
//		} catch (Exception ex) {
//			ex.printStackTrace();
//		}
//	}
//
//	private void addReceiver(Employee em) {
//		if (!checkContains(em)) {
//			ListApprove l = new ListApprove();
//			l.setiDEmployee(em.getIdemployee());
//			l.setOrder(allReceiver.size() + 1);
//			l.setiDStatus(4);
//			l.setiDTypeApprove(1);
//			l.setDescription("");
//			allReceiver.add(l);
//		}
//
//		return;
//	}
//
//	private boolean checkContains(Employee em) {
//		for (int i = 0; i < allReceiver.size(); i++) {
//			ListApprove l = allReceiver.get(i);
//			if (l.getiDEmployee() == em.getIdemployee())
//				return true;
//		}
//		return false;
//	}
//
//	public void changeGroup(AjaxBehaviorEvent event) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		UISelect combo = (UISelect) f.getViewRoot().findComponent(
//				"mainForm:groupApprove");
//		allListApproveOfGroup.clear();
//		if (combo.getValue() != "") {
//			GroupApprove g = null;
//			Integer ID = Integer.parseInt(combo.getValue().toString());
//			if (allGroupApprove.containsKey(ID)) {
//				g = allGroupApprove.get(ID);
//				allListApproveOfGroup.addAll(g.getAllListApprove());
//				setGroupCurrentName(String.valueOf(ID));
//			}
//		}
//	}
//
//	public void checkSaveGroup(AjaxBehaviorEvent e) {
//
//		if (allReceiver.size() == 0) {
//			setMessErr(getLangs().get("errSaveGroup"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pErrorSaveGroup')");
//		} else {
//			setMessErr(getLangs().get("messSaveGroup"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pSaveGroup')");
//		}
//	}
//
//	public void saveGroup(ActionEvent e) {
//		if (this.getGroupName().length() == 0) {
//			// FacesContext.getCurrentInstance().addMessage(
//			// "fSaveGroup:txtGroupName",
//			// new FacesMessage(FacesMessage.SEVERITY_ERROR, utilInitLang
//			// .getEmptyGroupName(), utilInitLang
//			// .getEmptyGroupName()));
//			setMessErr(getLangs().get("emptyGroupName"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pErrorSaveGroup')");
//			return;
//		} else if (checkGroupName(this.getGroupName())) {
//			// FacesContext.getCurrentInstance().addMessage(
//			// "fSaveGroup:txtGroupName",
//			// new FacesMessage(FacesMessage.SEVERITY_ERROR, utilInitLang
//			// .getErrorGroupNameExists(), utilInitLang
//			// .getErrorGroupNameExists()));
//			setMessErr(getLangs().get("errorGroupNameExists"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pErrorSaveGroup')");
//			return;
//		} else {
//
//			int newID = 0;
//			int iLastKey = getiDLast();
//			if (iLastKey > 0)
//				newID = iLastKey;
//			else
//				newID = getLastKeyFromDataBase();
//			GroupApprove g = new GroupApprove();
//			g.setIdGroupApprove(String.valueOf(newID + 1));
//			g.setGroupName(this.getGroupName());
//			g.setAdd(true);
//			setiDLast(newID + 1);
//			g.getAllListApprove().addAll(allReceiver);
//			allGroup.add(new SelectItem(newID + 1, g.getGroupName()));
//			allGroupApprove.put(g.getIdGroupApprove(), g);
//			setGroupCurrentName("");
//			allListApproveOfGroup.clear();
//			allReceiver.clear();
//			setGroupName("");
//			setMessErr("");
//			setScript("RichFaces.ui.PopupPanel.hidePopupPanel('pSaveGroup')");
//		}
//	}
//
//	private boolean checkGroupName(String name) {
//		for (SelectItem slI : allGroup) {
//			if (name.equalsIgnoreCase(slI.getLabel()))
//				return true;
//		}
//		return false;
//	}
//
//	private int getLastKeyFromDataBase() {
//		mysqlHelper.open();
//		String sql = "select MAX(IDGroupApprove) from groupapprove";
//		ResultSet rs = mysqlHelper.executeQuery(sql);
//		int newID = 0;
//		try {
//			if (rs.next())
//				newID = rs.getInt(1);
//
//		} catch (SQLException e1) {
//
//		}finally{
//			mysqlHelper.close();
//		}
//		return newID;
//
//	}
//
//	public void dbClickRemove() {
//		try {
//			int iremove = this.getCurrenRowReceiverIndex();
//			int lengh = allReceiver.size();
//			if (iremove < lengh - 1) {
//				for (int i = iremove + 1; i < lengh; i++) {
//					allReceiver.get(i).setOrder(i);
//				}
//			}
//			allReceiver.remove(iremove);
//
//		} catch (Exception e) {
//			e.printStackTrace();
//		}
//
//	}
//
//	public void checkDeleteGroup(ActionEvent e) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		UISelect combo = (UISelect) f.getViewRoot().findComponent(
//				"mainForm:groupApprove");
//		Object obj = combo.getValue();
//		if (obj == "") {
//			setMessErr(getLangs().get("errNoGroupDelete"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pErrorDeleteGroup')");
//		} else {
//			setMessErr(getLangs().get("messDeleteGroup"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pDeleteGroup')");
//		}
//	}
//
//	public void deleteGroup(ActionEvent e) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		UISelect combo = (UISelect) f.getViewRoot().findComponent(
//				"mainForm:groupApprove");
//		Object obj = combo.getValue();
//		Integer key = Integer.parseInt(obj.toString());
//		updateComboGroup(key);
//		if (allGroupApprove.containsKey(key)) {
//			GroupApprove g = allGroupApprove.get(key);
//			if (g.isAdd())
//				allGroupApprove.remove(key);
//			else {
//				allGroupApprove.get(key).setDelete(true);
//			}
//			allListApproveOfGroup.clear();
//			setGroupCurrentName("");
//		}
//	}
//
//	private void updateComboGroup(Integer key) {
//		for (SelectItem item : allGroup) {
//			if (key == Integer.parseInt(item.getValue().toString())) {
//				allGroup.remove(item);
//				return;
//			}
//		}
//	}
//
//	public void checkApply(ActionEvent e) {
//
//		if (allGroup.size() == 0) {
//			setMessErr(getLangs().get("errEmptyGroup"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pErrorApply')");
//		} else if (this.getGroupCurrentName() == "") {
//			setMessErr(getLangs().get("errNoGroupApply"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pErrorApply')");
//		} else {
//			setMessErr(getLangs().get("messApply"));
//			setScript("RichFaces.ui.PopupPanel.showPopupPanel('pApply')");
//		}
//	}
//
//	public void apply(ActionEvent e) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		HttpSession ss = (HttpSession) f.getExternalContext().getSession(true);
//		UISelect combo = (UISelect) f.getViewRoot().findComponent(
//				"mainForm:groupApprove");
//		Object obj = combo.getValue();
//		Integer key = Integer.parseInt(obj.toString());
//		ss.setAttribute("Group", allGroupApprove.get(key));
//		updateGroup();
//		clearAllAtr();
//		
//	}
//
//	private void updateGroup() {
//		boolean isDelete = false;
//		boolean isAdd = false;
//		mysqlHelper.open();
//		try {
//
//			String sqlGroup = "insert into groupapprove(IDGroupApprove,StatusUse,GroupName,Description) values(";
//			String sqlDel = "delete groupapprove,listapprove from groupapprove,listapprove where (groupapprove.IDGroupApprove=listapprove.IDGroupApprove and groupapprove.IDGroupApprove=";
//			String sqlListApp = "insert into listapprove(IDGroupApprove,IDEmployee,IDtypeApprove,listapprove.Order,listapprove.IDStatus,Description) values(";
//			Enumeration<GroupApprove> allGroupApp = allGroupApprove.elements();
//			while (allGroupApp.hasMoreElements()) {
//				GroupApprove groupApprove = allGroupApp.nextElement();
//				if (groupApprove.isAdd()) {
//					isAdd = true;
//					sqlGroup = sqlGroup + groupApprove.getIdGroupApprove()
//							+ ",0,'" + groupApprove.getGroupName() + "',''),(";
//					ArrayList<ListApprove> allListApp = groupApprove
//							.getAllListApprove();
//					for (int i = 0; i < allListApp.size(); i++) {
//						ListApprove lstApp = allListApp.get(i);
//						sqlListApp = sqlListApp
//								+ groupApprove.getIdGroupApprove() + ",'"
//								+ lstApp.getiDEmployee() + "',"
//								+ lstApp.getiDTypeApprove() + ","
//								+ lstApp.getOrder() + "," + lstApp.getiDStatus()
//								+ ",''),(";
//					}
//				} else if (groupApprove.isDelete()) {
//					sqlDel = sqlDel
//							+ groupApprove.getIdGroupApprove()
//							+ ") or (groupapprove.IDGroupApprove=listapprove.IDGroupApprove and groupapprove.IDGroupApprove=";
//					isDelete = true;
//				}
//			}
//			if (isAdd) {
//				mysqlHelper.executeUpdate(sqlGroup.substring(0,
//						sqlGroup.lastIndexOf(",")));
//				mysqlHelper.executeUpdate(sqlListApp.substring(0,
//						sqlListApp.lastIndexOf(",")));
//
//			}
//			if (isDelete) {
//				mysqlHelper.executeUpdate(sqlDel.substring(0,
//						sqlDel.lastIndexOf(")") + 1));
//			}
//		} catch (Exception e) {
//
//		}finally{
//			mysqlHelper.close();
//		}
//	}
//	public void wapDownOrder(ActionEvent e) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		UIExtendedDataTable table = (UIExtendedDataTable) f.getViewRoot()
//				.findComponent("mainForm:tableReceiver");
//		int rowIndex = table.getRelativeRowIndex();
//		try {
//			int iremove = rowIndex;
//			int lengh = allReceiver.size();
//			if (lengh == 1 || iremove == lengh - 1)
//				return;
//			int iLast = iremove + 1;
//
//			allReceiver.get(iLast).setOrder(iremove + 1);
//			ListApprove temp = allReceiver.remove(iremove);
//			temp.setOrder(iremove + 2);
//			allReceiver.add(iremove + 1, temp);
//
//		} catch (Exception ex) {
//			ex.printStackTrace();
//		}
//	}
//	public void wapUpOrder(ActionEvent e) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		UIExtendedDataTable table = (UIExtendedDataTable) f.getViewRoot()
//				.findComponent("mainForm:tableReceiver");
//		int rowIndex = table.getRelativeRowIndex();
//		try {
//			int iremove = rowIndex;
//			int lengh = allReceiver.size();
//			if (lengh == 1 || iremove == 0)
//				return;
//			int iFirst = iremove - 1;
//
//			allReceiver.get(iremove).setOrder(iremove);
//			ListApprove temp = allReceiver.remove(iFirst);
//			temp.setOrder(iremove + 1);
//			allReceiver.add(iremove, temp);
//
//		} catch (Exception ex) {
//			ex.printStackTrace();
//		}
//	}
//	public void openDeleteReceiver(ActionEvent e){
//		FacesContext f = FacesContext.getCurrentInstance();
//		UIExtendedDataTable table = (UIExtendedDataTable) f.getViewRoot()
//				.findComponent("mainForm:tableReceiver");
//		indexDeleteReceiver=table.getRelativeRowIndex();;
//	}
//	public void deleteReceiver(ActionEvent e){
//		
//		System.out.println("Delete :"+this.getIndexDeleteReceiver());
//		try {
//			int iremove = this.getIndexDeleteReceiver();
//			int lengh = allReceiver.size();
//			if (iremove < lengh - 1) {
//				for (int i = iremove + 1; i < lengh; i++) {
//					allReceiver.get(i).setOrder(i);
//				}
//			}
//			allReceiver.remove(iremove);
//
//		} catch (Exception ex) {
//			ex.printStackTrace();
//		}
//	}
//	public void exit(ActionEvent e) {
//		clearAllAtr();
//	}
//
//	private void clearAllAtr() {
//		allEmployee.clear();
//		allGroup.clear();
//		allGroupApprove.clear();
//		allListApproveOfGroup.clear();
//		allReceiver.clear();
//	}
//
//	public List<TreeNode> getRootNodes() {
//		rootNodes.clear();
//		initTree();
//		return rootNodes;
//	}
//
//	public void setRootNodes(List<TreeNode> rootNodes) {
//		this.rootNodes = rootNodes;
//	}
//
//	public Department getCurrentSelection() {
//		return currentSelection;
//	}
//
//	public void setCurrentSelection(Department currentSelection) {
//		this.currentSelection = currentSelection;
//	}
//
//	public List<Employee> getAllEmployee() {
//		return allEmployee;
//	}
//
//	public void setAllEmployee(List<Employee> allEmployee) {
//		this.allEmployee = allEmployee;
//	}
//
//	public ArrayList<ListApprove> getAllReceiver() {
//		return allReceiver;
//	}
//
//	public void setAllReceiver(ArrayList<ListApprove> allReceiver) {
//		this.allReceiver = allReceiver;
//	}
//
//	public int getCurrentIndex() {
//		return currentIndex;
//	}
//
//	public void setCurrentIndex(int currentIndex) {
//		this.currentIndex = currentIndex;
//	}
//
//	public ArrayList<SelectItem> getAllGroup() {
//		if (isBinding()) {
//			mysqlHelper.open();
//			allGroup.clear();
//			allGroupApprove.clear();
//			try {
//				String sql = "select * from groupapprove";
//				ResultSet rs = mysqlHelper.executeQuery(sql);
//				while (rs.next()) {
//					GroupApprove g = new GroupApprove(
//							rs.getString("IDGroupApprove"),
//							rs.getBoolean("StatusUse"),
//							rs.getString("GroupName"),
//							rs.getString("Description"));
//					if (!g.getStatusUse()) {
//						allGroup.add(new SelectItem(g.getIdGroupApprove(), g
//								.getGroupName()));
//						allGroupApprove.put(g.getIdGroupApprove(), g);
//					}
//				}
//			} catch (Exception e) {
//			}finally{
//				mysqlHelper.close();
//			}
//		}
//		setBinding(false);
//		return allGroup;
//	}
//
//	public void setAllGroup(ArrayList<SelectItem> allGroup) {
//		this.allGroup = allGroup;
//	}
//
//	public ArrayList<ListApprove> getAllListApproveOfGroup() {
//		return allListApproveOfGroup;
//	}
//
//	public void setAllListApproveOfGroup(
//			ArrayList<ListApprove> allListApproveOfGroup) {
//		this.allListApproveOfGroup = allListApproveOfGroup;
//	}
//
//	public Hashtable<String, GroupApprove> getAllGroupApprove() {
//		return allGroupApprove;
//	}
//
//	public void setAllGroupApprove(
//			Hashtable<String, GroupApprove> allGroupApprove) {
//		this.allGroupApprove = allGroupApprove;
//	}
//
//	public String getGroupName() {
//		return groupName;
//	}
//
//	public void setGroupName(String groupName) {
//		this.groupName = groupName;
//	}
//
//	public String getEventPopupSaveGroup() {
//		return eventPopupSaveGroup;
//	}
//
//	public void setEventPopupSaveGroup(String eventPopupSaveGroup) {
//		this.eventPopupSaveGroup = eventPopupSaveGroup;
//	}
//
//	public String getGroupCurrentName() {
//		return groupCurrentName;
//	}
//
//	public void setGroupCurrentName(String groupCurrentName) {
//		this.groupCurrentName = groupCurrentName;
//	}
//
//	public String getSearchDepartment() {
//		return searchDepartment;
//	}
//
//	public void setSearchDepartment(String searchDepartment) {
//		this.searchDepartment = searchDepartment;
//	}
//
//	public boolean isBinding() {
//		FacesContext f = FacesContext.getCurrentInstance();
//		HttpSession ss = (HttpSession) f.getExternalContext().getSession(true);
//		Object obj = ss.getAttribute("Binding");
//		if (obj != null)
//			isBinding = (Boolean) obj;
//		return isBinding;
//	}
//
//	public void setBinding(boolean isBinding) {
//		FacesContext f = FacesContext.getCurrentInstance();
//		HttpSession ss = (HttpSession) f.getExternalContext().getSession(true);
//		ss.setAttribute("Binding", new Boolean(false));
//		this.isBinding = isBinding;
//	}
//
//	public int getCurrenRowReceiverIndex() {
//		return currenRowReceiverIndex;
//	}
//
//	public void setCurrenRowReceiverIndex(int currenRowReceiverIndex) {
//		this.currenRowReceiverIndex = currenRowReceiverIndex;
//	}
//
//	public String getButonleft() {
//		return butonleft;
//	}
//
//	public void setButonleft(String butonleft) {
//		this.butonleft = butonleft;
//	}
//
//	public String getButonright() {
//		return butonright;
//	}
//
//	public void setButonright(String butonright) {
//		this.butonright = butonright;
//	}
//
//	public int getCurrentIn() {
//		return currentIn;
//	}
//
//	public void setCurrentIn(int currentIn) {
//		this.currentIn = currentIn;
//	}
//
//	public int getCurrentIndexReceiver() {
//		return currentIndexReceiver;
//	}
//
//	public void setCurrentIndexReceiver(int currentIndexReceiver) {
//		this.currentIndexReceiver = currentIndexReceiver;
//	}
//
//	public int getiDLast() {
//		return iDLast;
//	}
//
//	public void setiDLast(int iDLast) {
//		this.iDLast = iDLast;
//	}
//
//	public String getMessErr() {
//		return messErr;
//	}
//
//	public void setMessErr(String messErr) {
//		this.messErr = messErr;
//	}
//
//	public String getScript() {
//		return script;
//	}
//
//	public void setScript(String script) {
//		this.script = script;
//	}
//
//}
